<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function fun1(){
				alert(location.href)
			}
			function fun2(){
				window.location.href="https://www.pzhu.cn"
			}
			var wid
			function fun3(){
				var url="https://www.pzhu.cn"
				var name="pzhu"
				var f="width=800px,height=600px,left=200px,top=200px"
				wid=open(url,name,f)
			}
			function fun4(){
				
				wid.close()
			}
		</script>
	</head>
	<body>
		<button type="button" onclick="fun1()">获取url</button>
		<button type="button" onclick="fun2()">设置url</button>
		<button type="button" onclick="fun3()">打开</button>
		<button type="button" onclick="fun4()">关闭</button>
	</body>
</html>
